﻿using _14.访问者模式.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _14.访问者模式.Models
{
    public class Master : IPerson
    {

        public void Feed(Cat animal)
        {
            Console.WriteLine("主人自已喂猫");
        }

        public void Feed(Dog animal)
        {
            Console.WriteLine("主人自已喂狗");
        }

        public void Feed(Fish animal)
        {
            Console.WriteLine("主人自已喂鱼");
        }
    }
}
